package com.book.manager.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author: yfan-chen
 * @description: 学生借书记录
 * @create: 2021-09-01 00:09
 **/
@Data
public class RelUserBook {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键Id")
    private Integer relUserBookId;
    @ApiModelProperty(value = "用户Id")
    private Integer userId;
    @ApiModelProperty(value = "书籍Id")
    private Integer bookId;
    @ApiModelProperty(value = "书籍号，每本书籍唯一")
    private String bookCode;
    @ApiModelProperty(value = "借书时间戳")
    private Long loan;
    @ApiModelProperty(value = "还书时间戳")
    private Long back;
    @ApiModelProperty(value = "createTime")
    private Long createTime;
    @ApiModelProperty(value = "updateTime")
    private Long updateTime;
    @ApiModelProperty(value = "有效性")
    private Integer isValid;
}
